package xyz.masaikk.mvv;

public class SqlProp {
    private String url;
    private String pwd;
    private String name ;

    public SqlProp(String url,String pwd,String name){
        this.url=url;
        this.pwd=pwd;
        this.name=name;
    }

    public SqlProp(){
        this.url="";
        this.pwd="";
        this.name="";
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public void setName(String name) {
        this.name = name;
    }

    protected String getURL(){
        return "jdbc:mysql://119.23.182.180:3306/mymess";
    }
    protected String getPwd(){
        return "srp";
    }
    protected String getName(){
        return "srp";
    }

    @Override
    public String toString() {
        return "SqlProp{" +
                "url='" + url + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
